#include<bits/stdc++.h>
using namespace std;
const int N=1e5+10;
inline int read(){
    int k=0,f=1;
    char ch=getchar();
    while(ch<'0'||ch>'9'){
        if(ch=='-') f=-1;
        ch=getchar();
    }
    while(ch>='0'&&ch<='9'){
        k=k*10+ch-'0';
        ch=getchar();
    }
    return k*f;
}
int n,a[N],res=0;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    scanf("%d",&n);
    for(int i=1;i<=n;++i){
        a[i]=read();
    }
    sort(a+1,a+n+1);
    for(int i=1;i<=n;++i){
        if(a[i]==a[i+1]) res++;
    }
    if(res==0){
        printf("1");
        return 0;
    }
    res=0;
    for(int i=1;i<=n;++i){
        if(a[i]==a[i+1]) res++;
        else break;
    }
    printf("%d",res+1);
    return 0;
}
